package lancooUpLoad;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;
import com.trello.rxlifecycle.components.support.RxFragment;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2017/9/11/011.
 */

public class ChangeStuFavouriteParam extends BaseApi {


    private ChangeStuFavouriteModel mChangeStuFavouriteModel;

    public ChangeStuFavouriteModel getChangeStuFavouriteModel() {
        return mChangeStuFavouriteModel;
    }

    public void setChangeStuFavouriteModel(ChangeStuFavouriteModel SaveLearnedWrongQues) {
        this.mChangeStuFavouriteModel = SaveLearnedWrongQues;
    }

    public ChangeStuFavouriteParam(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    public ChangeStuFavouriteParam(HttpOnNextListener listener, RxFragment rxFragment) {
        super(listener, rxFragment);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);

        return httpPostServer.changeStuFavourite(mChangeStuFavouriteModel);
    }
}
